﻿<phone:PhoneApplicationPage
    xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
    xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
    xmlns:phone="clr-namespace:Microsoft.Phone.Controls;assembly=Microsoft.Phone"
    xmlns:shell="clr-namespace:Microsoft.Phone.Shell;assembly=Microsoft.Phone"
    xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
    xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
    xmlns:es="clr-namespace:Microsoft.Expression.Shapes;assembly=Microsoft.Expression.Drawing" xmlns:edc="clr-namespace:Microsoft.Expression.Controls;assembly=Microsoft.Expression.Drawing"
    x:Class="MyUtilityApp.CanvasDemoPage"
    FontFamily="{StaticResource PhoneFontFamilyNormal}"
    FontSize="{StaticResource PhoneFontSizeNormal}"
    Foreground="{StaticResource PhoneForegroundBrush}"
    SupportedOrientations="Portrait" Orientation="Portrait"
    mc:Ignorable="d"
    shell:SystemTray.IsVisible="True">
	<Canvas x:Name="layoutRoot">
		<Button Canvas.Left="50" 
			Canvas.Top="29"
			Content="AAA"/>
		<Button Canvas.Left="168" 
			Canvas.Top="29"
			Content="BBB"/>
		<Rectangle Width="362" 
			Height="181" 
			Canvas.Left="59" 
			Canvas.Top="161" RenderTransformOrigin="0.5,0.5"
                   >
			<Rectangle.Fill>
				<ImageBrush Stretch="UniformToFill" ImageSource="Images/480x800.jpg">
					<ImageBrush.RelativeTransform>
						<CompositeTransform CenterY="0.5" CenterX="0.5"/>
					</ImageBrush.RelativeTransform>
				</ImageBrush>
			</Rectangle.Fill>
		</Rectangle>
		<Ellipse Width="313" 
			Height="197"
			Fill="Pink"
			Canvas.ZIndex="-1" 
			Canvas.Left="75" 
			Canvas.Top="375"
                 />
		<es:RegularPolygon Fill="#FFFF002D" Height="94.117" InnerRadius="1" Canvas.Left="185.294" PointCount="6" Stretch="Fill" Canvas.Top="543" UseLayoutRounding="False" Width="100"/>
		<Path Data="M276.471,706.235 C248.191,703.093 227.393,696.82 200,684.176 C175.393,672.819 162.43,682.322 170.588,641.529 C174.744,620.748 186.733,624.975 204.412,612.118 C232.317,591.823 216.41,589.165 261.765,597.412 C260.294,597.412 258.824,597.412 257.353,597.412 C287.854,597.412 300,636.296 300,682.706 C300,697.472 271.743,699.328 252.941,704.765" Fill="Blue" Height="113.189" Canvas.Left="168.152" Stretch="Fill" Canvas.Top="593.046" UseLayoutRounding="False" Width="131.848"/>
	</Canvas>
</phone:PhoneApplicationPage>